
   <div class="whitebg tags">
      <!-- 分类名称 -->
      <div class="news-title">
        <?php if(empty($tagname)) echo '分类' ;else echo $tagname;   ?>
      <span class="tab-a-more"> <?php echo '共'.$thread_num.'条' ;?>
        </span>
      </div>
      <ul>

      <!-- 遍历分类列表 -->
     <?php  if(!empty($taglist))  {
       for($i=0;$i<count($taglist);$i++){

      ?>

        <a href="/category-<?php echo $fid.'-'.$page.'-'.$taglist[$i]['tagid'];   ?>.htm" style="background-color:<?php
        if($tagid == $taglist[$i]['tagid'] )  echo $color ?>" >
            <?php
            $article_num=db_count('thread',array('tagids'=>$taglist[$i]['tagid']));
            echo $taglist[$i]['name']."($article_num)";
            ?>
            </a>

     <?php  }  } ?>

      </ul>
    </div>
